import React from 'react'
import { useState } from 'react'
import logo from './logo.svg'

import {Route,Routes,Navigate} from 'react-router-dom'

import Login from '@/views/Login'
import Manage from '@/views/Manage'

import store from './store'

import './App.scss'

function App() {
  const [count, setCount] = useState(0)

  return (
    <div className="App">
      <Routes>
        <Route path="/login" element={<Login/>}/>

        {/* 在路径后添加型号（*）表示element对应的组件中有用子路由 */}
        <Route path="/manage/*" element={<Manage/>}/>
        <Route path='/' element={<Navigate to='/login' />} />
      </Routes>
    </div>
  )
}

export default App
